package com.payment.config.dto;

import org.springframework.stereotype.Component;

/**
 * String literals should not be duplicated5
 * <p>
 * 字符串不应该重复，如果多次用到同一字符串，建议将该字符串定义为字符串常量，再引用
 * <p>
 * 此工具类具体定义字符串输出的常量
 *
 * @author: lm
 * @date: 2020-08-03 10:33
 */
@Component
public class StringOutputConstant {

    public static final String CODE_REQUEST_EMPTY = "The request is empty！";

    public static final String CODE_PARAM_ERROR = "The request parameter exists illegally";

    public static final String CODE_SIGN_ERROR = "Sign illegal: Please confirm signature";

    public static final String CODE_EXCEPTION_WECHAT = "An Exception Occurred In WeChat Pre-order";

    public static final String CODE_PRE_ORDER_ERROR = "WeChat Pre-order Error";

    public static final String CODE_ORDER_FAILED = "WeChat Order Failed";

    public static final String CODE_MODE_ILLEGAL_ERROR = "Mode illegal: The value of mode is wrong";

    public static final String CODE_DELAYS_RESULTS = "There may be delays in payment results";

    public static final String CODE_PAYTYPE_ILLEGAL_ERROR = "PayType illegal: The value of payType is wrong";

    public static final String CODE_PAYID_ILLEGAL_ERROR = "PayId illegal: The value of payId is wrong";

    public static final String CODE_QUERY_ORDER_ERROR = "WeChat payment query is incorrect";

    public static final String CODE_FAILED = "There may be a delay in the payment result, please try the check out button again";

    /**
     * 成功的代码
     */
    public static final String CODE_SUCCESS = "SUCCESS";
    /**
     * payPal成功的代码
     */
    public static final String CODE_COMPLETED = "Completed";
    /**
     * stripe成功的代码
     */
    public static final String CODE_SUCCEEDED = "succeeded";
    /**
     * 失败的代码
     */
    public static final String CODE_FAIL = "FAIL";
    /**
     * sandbox代码
     */
    public static final String CODE_SANDBOX = "sandbox";
    /**
     * production代码
     */
    public static final String CODE_PRODUCTION = "production";
    /**
     * P000270
     */
    public static final String CODE_P000270 = "P000270";
    /**
     * P000609
     */
    public static final String CODE_P000609 = "P000609";
    /**
     * P000818
     */
    public static final String CODE_P000818 = "P000818";
    /**
     * P000359
     */
    public static final String CODE_P000359 = "P000359";
    /**
     * P000359
     */
    public static final String CODE_P000906 = "P000906";
    /**
     * P000242
     */
    public static final String CODE_P000242 = "P000242";
    /**
     * 领科自己的收款账号
     */
    public static final String CODE_PAYPAL_EMAIL_LINKS = "b2b2c@linksfield.net";

    /**
     * Gary自己的收款账号
     */
    public static final String CODE_PAYPAL_EMAIL_GARY = "gary@linksfield.net";
    /**
     * 微信支付的代码
     */
    public static final String CODE_PAY_WEIXIN = "1";
    /**
     * payPal支付的代码
     */
    public static final String CODE_PAY_PAYPAL = "2";
    /**
     * stripe支付的代码
     */
    public static final String CODE_PAY_STRIPE = "3";

    /**
     * 0的代码
     */
    public static final String CODE_ZERO = "0";
    /**
     * 1的代码
     */
    public static final String CODE_ONE = "1";

    /**
     * 2的代码
     */
    public static final String CODE_TWO = "2";

    /**
     * 3的代码
     */
    public static final String CODE_THREE = "3";

    /**
     * 4的代码
     */
    public static final String CODE_FOUR = "4";

    /**
     * 5的代码
     */
    public static final String CODE_FIVE = "5";

    /**
     * 6的代码
     */
    public static final String CODE_SIX = "6";

    /**
     * 7的代码
     */
    public static final String CODE_SEVEN = "7";

    /**
     * 8的代码
     */
    public static final String CODE_EIGHT = "8";
    /**
     * float型的0.01
     */
    public static final float TEST_AMOUNT = 0.01f;

    /**
     * float型的0.00
     */
    public static final float STANDARD_AMOUNT = 0.00f;
    /**
     * 欧元符号
     */
    public static final String EUR = "EUR";
    /**
     * 美元符号
     */
    public static final String USD = "USD";
    /**
     * 人民币符号
     */
    public static final String CNY = "CNY";
    /**
     * test
     */
    public static final String CODE_TEST = "test";
}
